package com.center.xx1;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class SocketI {
	
	private final static int port = 8083;
	
	public void runSocket(){
		try {
			ServerSocket socket = new ServerSocket(port);
			while(true){
				Socket sc = socket.accept();
				DataInputStream inputStream = new DataInputStream(sc.getInputStream());
				String data = inputStream.readUTF();
				Gson gson = new Gson();
			}
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
}
